var str = '123.435435';
const num = Number(str);
console.log('num=' + num); // num=123.435435

const number = Number(str).toFixed(2);
console.log('number=' + number); // number=123.44